<?php
namespace Mvc\App\Decorator;
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-22
 * Time: 3:39
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */
class Login
{

    function beforeAction($controller)
    {
        session_start();
        if (empty($_SESSION['isLogin'])) {
            header('Location: /login/index/');
            exit;
        }
    }

    function afterAction($return_value)
    {

    }

}